package com.study.project.dao;

import com.study.project.entity.Employee;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface EmployeeMapper {

    int deleteByPrimaryKey(String id);

    int insert(Employee employee);

    Employee selectByPrimaryKey(String id);

    int updateByPrimaryKey(Employee employee);

    @Select("select * from employee")
    List<Employee> findAll();
}